diff options
Diffstat (limited to 'docs/src/pages/[...slug].astro')
-rw-r--r-- | docs/src/pages/[...slug].astro | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/docs/src/pages/[...slug].astro b/docs/src/pages/[...slug].astro deleted file mode 100644 index 613e2b3d5..000000000 --- a/docs/src/pages/[...slug].astro +++ /dev/null @@ -1,19 +0,0 @@ ---- -export async function getStaticPaths() { - // get english pages that moved from `/` to `/en/` - const englishPages = Astro.fetchContent('./en/**/*.md'); - - // add pages that are `*.astro` files as well - const otherPages = [{ url: "/en/themes" }]; - return [...englishPages, ...otherPages].map((page) => ({ - params: { - slug: page.url.slice(4), - }, - props: { - englishSlug: page.url, - } - })); -} ---- - -<meta http-equiv="refresh" content={`0;url=${Astro.props.englishSlug}`} /> |